﻿using System;
using System.Web.UI;
using BluePortal.Medias.Core;
using BluePortal.Framework;


namespace BluePortal.QuikStart
{
    public partial class ChannelDetail : System.Web.UI.Page
    {
        private Guid chid;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.QueryString["chid"] != null)
                {
                    chid = new Guid(Request.QueryString["chid"]);
                }
                BCChannel bcchannel = new BCChannel();
                BCVideo bcvideo = new BCVideo();

                VideoChannels1.ChannelsList = bcchannel.FindWithMedia(Page.User.Identity.Name, chid, new FindParameters() { Count = 30});
                VideoList1.VideosList = bcvideo.FindByChannelWithViewCount(Page.User.Identity.Name, chid, new FindParameters() { Count = 30 });
                //Users1.UserList = VideoChannelUserAdapter.instance.FindByChannel(chid, null);
                //@todo 
            }
        }
    }
}
